#include "PerimeterCalculator.h"

double PerimeterCalculator::getResult(const Border& b1, const Border& b2)
{
    return ((b1.isValid() && b2.isValid()) ? ((b1.getLength() + b2.getLength()) * 2) : 0);
}


